<?php

class ZjyForumAd extends ZjyAd {

	const TYPE_FORUM = 'zjy_forum';
	protected function beforeValidate() {
		if ($this->isNewRecord) {
			$this->type = self::TYPE_FORUM;
		}
		return parent::beforeValidate();
	}
	
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
}

?>